#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:         C. Albert Thompson

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

;Exit
#include <Cutlass.au3>
#include <Gun.au3>
#include <Doll.au3>
#include <Dagger.au3>
#include <Grenade.au3>
#include <Staff.au3>

Func OnExit()
#cs
	$Doll_data = GUICtrlRead($Doll_Delay_1)

	IniWrite ( "attackhack.ini", "doll", "spelldelay", $Doll_data)

	$Grenade_data = GUICtrlRead($Grenade_Delay_1)

	IniWrite ( "attackhack.ini", "grenade", "throwdelay", $Grenade_data)


	$Staff_data_1 = GUICtrlRead($Staff_Delay_1)
	$Staff_data_2 = GUICtrlRead($Staff_Delay_2)
	$Staff_data_3 = GUICtrlRead($Staff_Delay_3)
	$Staff_data_4 = GUICtrlRead($Staff_Delay_4)
	$Staff_data_5 = GUICtrlRead($Staff_Delay_5)
	$Staff_data_6 = GUICtrlRead($Staff_Delay_6)

	IniWrite ( "attackhack.ini", "staff", "spell1delay", $Staff_data_1 )
	IniWrite ( "attackhack.ini", "staff", "spell2delay", $Staff_data_2 )
	IniWrite ( "attackhack.ini", "staff", "spell3delay", $Staff_data_3 )
	IniWrite ( "attackhack.ini", "staff", "spell4delay", $Staff_data_4 )
	IniWrite ( "attackhack.ini", "staff", "spell5delay", $Staff_data_5 )
	IniWrite ( "attackhack.ini", "staff", "spell6delay", $Staff_data_6 )

	$Gun_data = GUICtrlRead($Gun_Delay_1)

	IniWrite ( "attackhack.ini", "gun", "aimdelay", $Gun_data)

	$Cutlass_data_1 = GUICtrlRead($Cutlass_Combo_1)
	$Cutlass_data_2 = GUICtrlRead($Cutlass_Combo_2)
	$Cutlass_data_3 = GUICtrlRead($Cutlass_Combo_3)
	$Cutlass_data_4 = GUICtrlRead($Cutlass_Combo_4)
	$Cutlass_data_5 = GUICtrlRead($Cutlass_Combo_5)
	$Cutlass_data_6 = GUICtrlRead($Cutlass_Special1)

	IniWrite ( "attackhack.ini", "cutlass", "combo1delay", $Cutlass_data_1 )
	IniWrite ( "attackhack.ini", "cutlass", "combo2delay", $Cutlass_data_2 )
	IniWrite ( "attackhack.ini", "cutlass", "combo3delay", $Cutlass_data_3 )
	IniWrite ( "attackhack.ini", "cutlass", "combo4delay", $Cutlass_data_4 )
	IniWrite ( "attackhack.ini", "cutlass", "combo5delay", $Cutlass_data_5 )
	IniWrite ( "attackhack.ini", "cutlass", "specialdelay", $Cutlass_data_6)

	$Dagger_data_1 = GUICtrlRead($Dagger_Combo_1)
	$Dagger_data_2 = GUICtrlRead($Dagger_Combo_2)
	$Dagger_data_3 = GUICtrlRead($Dagger_Combo_3)
	$Dagger_data_4 = GUICtrlRead($Dagger_Combo_4)
	$Dagger_data_6 = GUICtrlRead($Dagger_Combo_6)

	IniWrite ( "attackhack.ini", "dagger", "combo1delay", $Dagger_data_1 )
	IniWrite ( "attackhack.ini", "dagger", "combo2delay", $Dagger_data_2 )
	IniWrite ( "attackhack.ini", "dagger", "combo3delay", $Dagger_data_3 )
	IniWrite ( "attackhack.ini", "dagger", "combo4delay", $Dagger_data_4 )
	IniWrite ( "attackhack.ini", "dagger", "specialdelay", $Dagger_data_6 )
#ce



GUIDelete()
Exit
EndFunc
